import $axios from '@/utils/axios'

export default {
  //获取菜单树
  getTree(params?: object): Promise<CommonObjectType> {
    return $axios.get('dm/api/sys/menu/tree', params)
  },
  //获取查询用户|角色|所有的菜单列表
  getList(params?: object): Promise<CommonObjectType> {
    return $axios.get('dm/api/sys/menu/list', params)
  },
}
